In fact, there is no desire today. -mysqli, Desire. -mysqli
Hi
Noon Shuangshuang Swim for a while, but the afternoon to a punch Superman read, unexpectedly sprout not out of the desire to learn ... Force yourself to update something, read a book.
1,
Mysql and mysqli are connected to the PHP database. Mysql and mysqli are connected to the PHP database for comparative analysis. mysqlmysqli 1. concepts related to mysql and mysqli 1. mysql and mysqli are both function sets in php and are not
Difference between mysql and mysqli
Mysql opens a connection process at each link, and mysqli runs mysqli multiple times to use the same connection process, thus reducing the server overhead.
When programming, some friends always use new mysqli
PHP database connection MySQL and mysqli comparative analysis, mysqlmysqli
First, MySQL and the concept of mysqli related
1, MySQL and mysqli are PHP's function set , and MySQL database is not associated with much.
2, before the PHP5 version, is
Mysql is a non-persistent connection function, while mysqli is a permanent connection function.
Mysql is a non-persistent connection function, while mysqli is a permanent connection function.
That is to say
Mysql opens a connection process at each
First, two functions are used to handle database operations.
The MYSQLI connection is a permanent connection, and MySQL is a non-persistent connection.
The MySQL connection will reopen a new process whenever it is used for the second time, and
That is to say
MySQL opens a connection process at each link, and mysqli runs mysqli multiple times to use the same connection process, thus reducing the server overhead.
When programming, some friends always use new mysqli ('localhost',
A long time ago, I also because of the work of the bug, the PHP MySQL client connection driver Mysqlnd and libmysql between the difference between PHP and MySQL communication that thing, this time again encountered a connection with their things,
Other words
MySQL each link will open a connected process and mysqli run mysqli multiple times will use the same connection process, thereby reducing the cost of the server
Some friends use the new mysqli (' localhost ', usenamer ', ' Password ', '
That is to sayMysql opens a connection process at each link, and mysqli runs mysqli multiple times to use the same connection process, thus reducing the server overhead.When programming, some friends always use new mysqli ('localhost', usenamer ',
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.